home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 12
/
Cream of the Crop 12 (Part II)
/
Cream of the Crop 12 (Part II).iso
/
BBS
/
EZY120_1.ZIP
/
STRUCT.ARJ
/
CLIB.ARJ
/
STR4.CPP
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1996-03-09
|
349 b
|
20 lines
#include <ezylib.h>
#include <string.h>
char *TrimTrail(char *S)
{
int SLen = strlen(S);
if (SLen > 0) {
int Found = FALSE;
int Loop = SLen + 1;
while ((Loop > 0) && (!Found)) {
if ((S[Loop-1] != ' ') && (S[Loop-1] != 0x08)) {
S[Loop] = 0x00;
Found = TRUE;
}
}
}
return(S);
}